3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A simple polygon is a closed plane figure defined by a list of vertices. (In other words, a simple polygon is a polygon defined by a single contour.) The edges of a simple polygon should not intersect themselves or you will get unpredictable results when operating on the polygon. In addition, a simple polygon must be convex.
The entire simple polygon can have a set of attributes, and any or all of the vertices defining the polygon can have a set of attributes.
A simple polygon is defined by the TQ3PolygonData data type. See "Creating and Editing Simple Polygons" for a description of the routines you can use to create and edit simple polygons. Figure 22 shows a simple polygon.
typedef struct TQ3PolygonData {
unsigned long numVertices;
TQ3Vertex3D *vertices;
TQ3AttributeSet polygonAttributeSet;
} TQ3PolygonData;
Previous | QD3D Book | Overview | Chapter Contents | Next |